Make the accessors unsafe
Move tests to libcoretest