test code pieces