Replaced the 'from api import *' statement for 'from api import api'

Modified the test_key_can_equal_resource_name so it no longer uses the
imported modules to berify the resource names
New test to validate data with None attributes