Added instanceof test