Add test cases
Change as build location to be compatible with tests
Fix incorrect symbol names on 64-bit