upcasing properly and adding test