add test for introspection and split the codes in basic package into
basic and primitive packages.

Signed-off-by: free-walker <wally.1981@yahoo.com>