added castleHandler test