how to go test mode and sevice in nokia520 and 635

how to get to test mode and sevice in nokia520 and 635